From b86e08ed8bbb3eda55bbd5bafd3508f5d45f0743 Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Wed, 7 Feb 2007 00:25:48 +0000 Subject: [PATCH] (Fullscreen mode on MS-Windows): New node. --- man/faq.texi | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/man/faq.texi b/man/faq.texi index 30240941fc3..b800ffac69a 100644 --- a/man/faq.texi +++ b/man/faq.texi @@ -1266,6 +1266,7 @@ full list. * Editing MS-DOS files:: * Filling paragraphs with a single space:: * Escape sequences in shell output:: +* Fullscreen mode on MS-Windows:: @end menu @node Setting up a customization file, Using Customize, Common requests, Common requests @@ -2671,7 +2672,7 @@ Add the following line to your @file{.emacs} file: (setq sentence-end-double-space nil) @end lisp -@node Escape sequences in shell output, , Filling paragraphs with a single space, Common requests +@node Escape sequences in shell output, Fullscreen mode on MS-Windows, Filling paragraphs with a single space, Common requests @section Why these strange escape sequences from @code{ls} from the Shell mode? @cindex Escape sequences in @code{ls} output @cindex @code{ls} in Shell mode @@ -2693,6 +2694,28 @@ Install the @code{ansi-color} package (bundled with Emacs 21.1 and later), which converts these ANSI escape sequences into colors. @end itemize +@node Fullscreen mode on MS-Windows, , Escape sequences in shell output, Common requests +@section How can I start Emacs in fullscreen mode on MS-Windows? +@cindex Maximize frame +@cindex Fullscreen mode + +Use the function @code{w32-send-sys-command}. For example, you can +put the following in your @file{.emacs} file: + +@lisp +(add-hook 'term-setup-hook + #'(lambda () (w32-send-sys-command ?\xF030))) +@end lisp + +To avoid the slightly distracting visual effect of Emacs starting with +its default frame size and then growing to fullscreen, you can add an +@samp{Emacs.Geometry} entry to the Windows registry settings (see +@pxref{(emacs)X Resources}). + +To compute the correct values for width and height, first maximize the +Emacs frame and then evaluate @code{(frame-height)} and +@code{(frame-width)} with @kbd{M-:}. + @c ------------------------------------------------------------ @node Bugs and problems, Compiling and installing Emacs, Common requests, Top @chapter Bugs and problems -- 2.30.2